package test1;

public class A1 {

    public static void main(String[] args) {
        Thoroughbred horse = new Thoroughbred("Mare", "Stallion", 2015);

        // 使用操作获取属性值
        System.out.println("Mother: " + horse.getMother());
        System.out.println("Father: " + horse.getFather());
        System.out.println("Birth Year: " + horse.getBirthYear());

        // 使用操作获取当前年龄
        System.out.println("Current Age: " + horse.getCurrentAge() + " 岁");
    }
}
